package com.demo.web.controller;

import com.demo.controller.BaseController;
import com.demo.model.bomgl.bomgl;
import com.demo.model.bomgl.bomglQ.bomglQ;
import com.demo.service.bomglService.bomglService;
import com.demo.tool.ReturnResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
@RequestMapping("/api/bomgl")
public class bomglController extends BaseController<bomgl, bomglQ,Integer> {

    @Autowired
    private com.demo.service.bomglService.bomglService bomglService;


    //查询bom明细记录（返回对象集合）
    @GetMapping("/getdetailslist")
    protected ReturnResult getdetailslist() {
        return ReturnResult.success(bomglService.getdetailslist());
    }

    //查询bom明细物流记录（返回物料记录）
    @GetMapping("/getmateriallist")
    protected ReturnResult getmateriallist() {
        return ReturnResult.success(bomglService.getmateriallist());
    }
}
